package com.sx.pipeline.ui.examine.manager

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.sx.pipeline.ui.task.frag.ReleaseTaskFragment

class ExamineManagerAdapter(
    private val tabs: List<String>,
    private val tabsId:List<Int>,
    fm: FragmentManager, lifecycle: Lifecycle,
) : FragmentStateAdapter(fm, lifecycle) {

    override fun getItemCount(): Int {
        return tabs.size
    }

    override fun createFragment(position: Int): Fragment {
        return ExamineManagerPageFrag.newInstance(tabsId[position])
    }
}